package com.lll.securitydemo.dto.entity;

import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * Description: <br/>
 *
 * @author LLL<br       />;
 * @taskId <br/>
 * <br/>
 */
public class RoleEntity implements GrantedAuthority, Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 角色名
     */
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override public String getAuthority() {
        return name;
    }
}
